package io.kimmking.dubbo.demo.provider.provider;

import io.kimmking.dubbo.demo.api.model.User;
import io.kimmking.dubbo.demo.api.UserService;
import io.kimmking.dubbo.demo.api.exception.DemoError;
import io.kimmking.dubbo.demo.api.exception.DemoException;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(version = "1.0.0")
public class UserServiceImpl implements UserService {

    @Override
    public User findById(int id) {
        throw new DemoException(DemoError.BUSINESS_ERROR);
    }
}
